package com.baizhi.syh.entity;

import java.util.List;

public class Category {
    private int id;
    private String cateName;
    private int levels;
    private int parentld;

    private List<Category> categories;

    @Override
    public String toString() {
        return "Category{" +
                "id=" + id +
                ", cateName='" + cateName + '\'' +
                ", levels=" + levels +
                ", parentld=" + parentld +
                ", categories=" + categories +
                '}';
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getCateName() {
        return cateName;
    }

    public void setCateName(String cateName) {
        this.cateName = cateName;
    }

    public int getLevels() {
        return levels;
    }

    public void setLevels(int levels) {
        this.levels = levels;
    }

    public int getParentld() {
        return parentld;
    }

    public void setParentld(int parentld) {
        this.parentld = parentld;
    }

    public List<Category> getCategories() {
        return categories;
    }

    public void setCategories(List<Category> categories) {
        this.categories = categories;
    }

    public Category() {
    }

    public Category(String cateName, int levels, int parentld, List<Category> categories) {
        this.cateName = cateName;
        this.levels = levels;
        this.parentld = parentld;
        this.categories = categories;
    }
}
